package nl.jworks.epub.organizer.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;

@Entity
public class Image {
    @Id
    private long id;

    @Column
    private String fileName;

    @Column(name = "DATA")
    @Lob
    private byte[] content;

    public Image(String fileName, byte[] content) {
        this.fileName = fileName;
        this.content = content;
    }

    public String getFileName() {
        return fileName;
    }

    public byte[] getContent() {
        return content;
    }

    public long getId() {
        return id;
    }

}
